<script setup lang="ts">
import { reactive, watch, ref } from 'vue'
import { reqAttr } from '@/api/product/attr'
import { reqImageList, reqSpuHasSaleAttr } from '@/api/product/spu'
let emit = defineEmits(['changeScene'])

const initSkuData = async (
  c1Id: number | string,
  c2Id: number | string,
  spu: any,
) => {
  const result = await reqAttr(c1Id, c2Id, spu.category3Id)
}
// 对外暴露
defineExpose({ initSkuData })
const cancel = () => {
  emit('changeScene', { flag: 0, params: '' })
}
</script>
<template>
  <div>
    <!-- <el-form label-width="100px">
      <el-form-item label="SKU名称">
        <el-input placeholder="SKU名称"></el-input>
      </el-form-item>
      <el-form-item label="价格（元）">
        <el-input placeholder="价格（元）" type="number"></el-input>
      </el-form-item>
      <el-form-item label="重量（g）">
        <el-input placeholder="重量（g）" type="number"></el-input>
      </el-form-item>
      <el-form-item label="SKU描述">
        <el-input placeholder="SKU描述" type="textarea"></el-input>
      </el-form-item>
      <el-form-item label="平台属性">
        <el-form :inline="true">
          <el-form-item label="hh" v-for="item in 6" :key="item">
            <el-select style="width: 180px">
              <el-option>hhh</el-option>
              <el-option>hhh</el-option>
            </el-select>
          </el-form-item>
        </el-form>
      </el-form-item>
      <el-form-item label="销售属性">
        <el-form :inline="true">
          <el-form-item label="hh" v-for="item in 3" :key="item">
            <el-select style="width: 180px">
              <el-option>hhh</el-option>
              <el-option>hhh</el-option>
            </el-select>
          </el-form-item>
        </el-form>
      </el-form-item>
      <el-form-item label="图片名称">
        <el-table border>
          <el-table-column
            type="index"
            align="center"
            label="序号"
            width="180"
          ></el-table-column>
          <el-table-column align="center" label="图片"></el-table-column>
          <el-table-column align="center" label="名称"></el-table-column>
          <el-table-column
            align="center"
            label="操作"
            width="180"
          ></el-table-column>
        </el-table>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="default">保存</el-button>
        <el-button type="primary" size="default" @click="cancel">
          取消
        </el-button>
      </el-form-item>
    </el-form> -->
  </div>
</template>
<style scoped lang="scss"></style>
